<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link rel="stylesheet" type="text/css" href="css/mui.css"/>
</head>
<body>
    
    <script src="js/mui.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    	mui.init();
    	mui.plusReady(function(){
//    		得到当前页面的 webveiw 对象
    		var self = plus.webview.currentWebview();
    		
      		var subpages = ['person/views/login.html','person/views/reg.html','person/views/person.html'];
      		for(var i=0;i<subpages.length;i++){
      			
      			var sub = plus.webview.create(subpages[i],subpages[i],{
      				top: '0px',
    				bottom: '50px'});
      			if(i>0){
//    				plus.webview.hide(subpages[i]);
					sub.hide();
					
      			}
			 	self.append(sub);
      		}
      		var activeTab = subpages[0];
//    		plus.webview.show(activeWebview);
      		/*mui('.mui-bar-tab').on('tap','a',function(){
      				var wid = this.getAttribute('data-id');
      				if(wid != activeTab){
      					plus.webview.show(wid);
  						activeTab = wid;
      				}      				
      		})    */		
      	})
    </script>
</body>
</html>

